package com.yunhe.rentcars.pro.entity.car;

import com.yunhe.rentcars.commons.constant.Constants;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author maliang
 * @version V1.0
 * @date 2017/11/24 0024 16:14
 * @Description: 车辆保养实体
 */
public class CarMaintain {
    private Long recordId; // 记录编号
    private String carCode; // 车牌号
    private Double initMile; // 发车里程
    private Double initOil; // 发车油量
    private String address; // 保养地点
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date usecarTime; // 出车时间
    private String headMan; // 经办人
    private String headMobile; // 经办手机
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date returnTime; // 还车时间
    private Double returnMile; // 还车里程
    private Double returnOil; // 还车油量
    private Double costMoney; // 保养费用
    private String costContent; // 保养内容
    private String remark; // 备注信息
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date nextTime; // 下次保养时间
    private Double nextMile; // 下次保养里程
    private Integer status = Constants.CAR_IN_MAINTAIN; // 保养状态(默认保养中)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date addTime; // 添加时间

    public Long getRecordId() {
        return recordId;
    }

    public void setRecordId(Long recordId) {
        this.recordId = recordId;
    }

    public String getCarCode() {
        return carCode;
    }

    public void setCarCode(String carCode) {
        this.carCode = carCode;
    }

    public Double getInitMile() {
        return initMile;
    }

    public void setInitMile(Double initMile) {
        this.initMile = initMile;
    }

    public Double getInitOil() {
        return initOil;
    }

    public void setInitOil(Double initOil) {
        this.initOil = initOil;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Date getUsecarTime() {
        return usecarTime;
    }

    public void setUsecarTime(Date usecarTime) {
        this.usecarTime = usecarTime;
    }

    public String getHeadMan() {
        return headMan;
    }

    public void setHeadMan(String headMan) {
        this.headMan = headMan;
    }

    public String getHeadMobile() {
        return headMobile;
    }

    public void setHeadMobile(String headMobile) {
        this.headMobile = headMobile;
    }

    public Date getReturnTime() {
        return returnTime;
    }

    public void setReturnTime(Date returnTime) {
        this.returnTime = returnTime;
    }

    public Double getReturnMile() {
        return returnMile;
    }

    public void setReturnMile(Double returnMile) {
        this.returnMile = returnMile;
    }

    public Double getReturnOil() {
        return returnOil;
    }

    public void setReturnOil(Double returnOil) {
        this.returnOil = returnOil;
    }

    public Double getCostMoney() {
        return costMoney;
    }

    public void setCostMoney(Double costMoney) {
        this.costMoney = costMoney;
    }

    public String getCostContent() {
        return costContent;
    }

    public void setCostContent(String costContent) {
        this.costContent = costContent;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getNextTime() {
        return nextTime;
    }

    public void setNextTime(Date nextTime) {
        this.nextTime = nextTime;
    }

    public Double getNextMile() {
        return nextMile;
    }

    public void setNextMile(Double nextMile) {
        this.nextMile = nextMile;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
